package com.caochenlei.service.impl;

import com.caochenlei.pojo.Product;
import com.caochenlei.service.ProductService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public List<Product> findAll() {
        return Arrays.asList(
                new Product(1, "小米手机", 1000.0D, 100),
                new Product(2, "华为手机", 2000.0D, 200),
                new Product(3, "苹果手机", 3000.0D, 300)
        );
    }
}
